<template>
	<view>
		<z-paging :show-refresher-when-reload="false"  show-refresher-update-time  ref="paging" v-model="dataList" @query="queryList">
			<!-- z-paging默认铺满全屏，此时页面所有view都应放在z-paging标签内，否则会被盖住 -->
			<!-- 需要固定在页面顶部的view请通过slot="top"插入，包括自定义的导航栏 -->
			<view slot="top" class="">
				<u-navbar :borderBottom="false" :custom-back="back_self" back-text=" " :title="title"></u-navbar>
			</view>
		    <view class="list" >
				<view v-for="(item,index) in dataList" :key="index" class="list_item">
					<view class="list_item_top">
						<view class="list_item_top_title2 ">{{item.sign==0?'获得积分':'使用积分'}}</view>
						<view class="list_item_top_num">{{item.points}}积分</view>
					</view>
					<view class="list_item_bottom">
						<span>{{item.add_time}}</span>
						<!-- <span>余额:1969</span> -->
					</view>
				</view>
		    </view>
		</z-paging>
	</view>
</template>

<script>
	
		export default {
			components:{
				
			},
		data() {
			return {
				dataList:[]
			}
		},
		onLoad(data) {
			this.title = '积分消费记录'
		},
		onShow() {},
		
		
		methods: {
			queryList(pageNo, pageSize) {
				var data = {
					
				}
				this.$wqzApi.UserPoints_list(data).then(res=>{
					this.$refs.paging.complete(res.data.list);
				}).catch(err=>{
					this.$refs.paging.complete(false);
				})
				// this.$wqzApi.shop_order_list(data).then(res=>{
				// 	this.$refs.paging.complete(res.data.list);
				// }).catch(err=>{
				// 	this.$refs.paging.complete(false);
				// })
			},
		}
	}
</script>
<style lang="scss" scoped>
	@import url(./point_list.scss);
</style>
